/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package algoritmo;


public class DepthLimitedSearch extends DepthFirstSearch {

    protected  int profDeCorte;

    public DepthLimitedSearch(int profDeCorte) {
        this.profDeCorte = profDeCorte;
    }

    @Override
    public boolean shouldExpand(Node n) {
        return n.getDepth() < profDeCorte;
    }

    public int getProfDeCorte() {
        return profDeCorte;
    }

    public void setProfDeCorte(int profDeCorte) {
        this.profDeCorte = profDeCorte;
    }
    
    
    
    
  
}
